package cn.dam.api.service;

import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.mysql.fabric.Response;

import cn.dam.api.entity.UserEntity;
import cn.dam.base.ResponseBase;
@RequestMapping("/member")
public interface MemberService {
	//根据用户id查询用户信息
	@RequestMapping("/findUserById")
	ResponseBase findUserById(Long userId);
	
	//注册用户
	@RequestMapping("/regUser")
	ResponseBase regUser(@RequestBody UserEntity userEntity);
	
	//用户登录
	@RequestMapping("/login")
	ResponseBase login(@RequestBody UserEntity userEntity);
	
	//使用token进行登录
	@RequestMapping("/findByTokenUser")
	ResponseBase findByTokenUser(@RequestParam(name="token") String token);

}
